import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ShouyeComponent } from './pages/shouye/shouye.component';
// import { HomeComponent } from './pages/home/home.component';
// import { GongsiyejiComponent } from './pages/gongsiyeji/gongsiyeji.component';
// import { JituangaikuangComponent } from './pages/jituangaikuang/jituangaikuang.component';
// import { KejichuangxinComponent } from './pages/kejichuangxin/kejichuangxin.component';
// import { LianxiwomenComponent } from './pages/lianxiwomen/lianxiwomen.component';
// import { QiyewenhuaComponent } from './pages/qiyewenhua/qiyewenhua.component';
// import { XinwenzhongxinComponent } from './pages/xinwenzhongxin/xinwenzhongxin.component';
// import { ZhaocaigonggaoComponent } from './pages/zhaocaigonggao/zhaocaigonggao.component';
import { SameTempsComponent } from './components/same-temps/same-temps.component';

const routes: Routes = [
  
  {
    path:'home',
    component:ShouyeComponent
  },
  // {
  //   path:'sameContent/:id',
  //   component:SameTempComponent
  // },
  {
   path:'jituangaikuang/:id',
   component:SameTempsComponent
  },
  {
    path:'xinwenzhongxin/:id',
    component:SameTempsComponent
   },
   {
    path:'gongsiyeji/:id',
    component:SameTempsComponent
   },
   {
    path:'sytzGsyj/:id',
    component:SameTempsComponent
   },
   {
    path:'kejichuangxin/:id',
    component:SameTempsComponent
   },
   {
    path:'qiyewenhua/:id',
    component:SameTempsComponent
   },
   {
    path:'zhaocaigonggao/:id',
    component:SameTempsComponent
   },
   {
    path:'lianxiwomen/:id',
    component:SameTempsComponent
   },
   {
    path:'renliziyuan/:id',
    component:SameTempsComponent
   },
  {
   path:'jituangaikuang',
   component:SameTempsComponent
  },
  {
    path:'xinwenzhongxin',
    component:SameTempsComponent
   },
   {
    path:'gongsiyeji',
    component:SameTempsComponent
   },
   {
    path:'kejichuangxin',
    component:SameTempsComponent
   },
   {
    path:'qiyewenhua',
    component:SameTempsComponent
   },
   {
    path:'zhaocaigonggao',
    component:SameTempsComponent
   },
   {
    path:'lianxiwomen',
    component:SameTempsComponent
   },
   {
    path:'renliziyuan',
    component:SameTempsComponent
   },{
    path:'',
   component:ShouyeComponent,
   pathMatch:'full'
  },{
    path:'**',
    redirectTo:''
    }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { 

 }
